#include "Display.h"
#include <iostream>

using namespace std;


Display::Display(void)
{
}


Display::~Display(void)
{
}

//Displays the data on the display.
bool Display::set(IData* data)
{
	if(data->isValid())
	{
		cout << "===== User found =====" << endl;

		for(int i=0; i<data->numVariables; i++)
		{
			cout << data->variables[i] << endl;
		}

		cout << "===== End of user data =====" << endl;

		return true;
	}

	else
	{
		cout << endl << "=== Data error. The user does not exist. ===" << endl << endl;
		return false;
	}
}
